class ArticleEntity {
	ArticleData? data;
	int? errorCode;
	String? errorMsg;

	ArticleEntity({required this.data, required this.errorCode, required this.errorMsg});

	ArticleEntity.fromJson(Map<String, dynamic> json) {
		data = (json['data'] != null ? new ArticleData.fromJson(json['data']) : null)!;
		errorCode = json['errorCode'];
		errorMsg = json['errorMsg'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.data != null) {
      data['data'] = this.data?.toJson();
    }
		data['errorCode'] = this.errorCode;
		data['errorMsg'] = this.errorMsg;
		return data;
	}
}

class ArticleData {
	bool? over;
	int? pageCount;
	int? total;
	int? curPage;
	int? offset;
	int? size;
	List<ArticleDataData>? datas;

	ArticleData({required this.over, required this.pageCount, required this.total, required this.curPage, required this.offset, required this.size, required this.datas});

	ArticleData.fromJson(Map<String, dynamic> json) {
		over = json['over'];
		pageCount = json['pageCount'];
		total = json['total'];
		curPage = json['curPage'];
		offset = json['offset'];
		size = json['size'];
		if (json['datas'] != null) {
			datas = <ArticleDataData>[];(json['datas'] as List).forEach((v) { datas?.add(new ArticleDataData.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['over'] = this.over;
		data['pageCount'] = this.pageCount;
		data['total'] = this.total;
		data['curPage'] = this.curPage;
		data['offset'] = this.offset;
		data['size'] = this.size;
		if (this.datas != null) {
      data['datas'] =  this.datas?.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class ArticleDataData {
	String? superChapterName;
	int? publishTime;
	int? visible;
	String? niceDate;
	String? projectLink;
	String? author;
	String? prefix;
	int? zan;
	String? origin;
	String? chapterName;
	String? link;
	String? title;
	int? type;
	int? userId;
	List<Null>? tags;
	String? apkLink;
	String? envelopePic;
	int? chapterId;
	int? superChapterId;
	int? id;
	int? originId;
	bool? fresh;
	bool? collect;
	int? courseId;
	String? desc;

	ArticleDataData({required this.superChapterName, required this.publishTime, required this.visible, required this.niceDate, required this.projectLink, required this.author, required this.prefix, required this.zan, required this.origin, required this.chapterName, required this.link, required this.title, required this.type, required this.userId, required this.tags, required this.apkLink, required this.envelopePic, required this.chapterId, required this.superChapterId, required this.id,required this.originId, required this.fresh, required this.collect, required this.courseId, required this.desc});

	ArticleDataData.fromJson(Map<String, dynamic> json) {
		superChapterName = json['superChapterName'];
		publishTime = json['publishTime'];
		visible = json['visible'];
		niceDate = json['niceDate'];
		projectLink = json['projectLink'];
		author = json['author'];
		prefix = json['prefix'];
		zan = json['zan'];
		origin = json['origin'];
		chapterName = json['chapterName'];
		link = json['link'];
		title = json['title'];
		type = json['type'];
		userId = json['userId'];
		if (json['tags'] != null) {
			tags = <Null>[];
		}
		apkLink = json['apkLink'];
		envelopePic = json['envelopePic'];
		chapterId = json['chapterId'];
		superChapterId = json['superChapterId'];
		id = json['id'];
		originId = json['originId'];
		fresh = json['fresh'];
		collect = json['collect'];
		courseId = json['courseId'];
		desc = json['desc'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['superChapterName'] = this.superChapterName;
		data['publishTime'] = this.publishTime;
		data['visible'] = this.visible;
		data['niceDate'] = this.niceDate;
		data['projectLink'] = this.projectLink;
		data['author'] = this.author;
		data['prefix'] = this.prefix;
		data['zan'] = this.zan;
		data['origin'] = this.origin;
		data['chapterName'] = this.chapterName;
		data['link'] = this.link;
		data['title'] = this.title;
		data['type'] = this.type;
		data['userId'] = this.userId;
		if (this.tags != null) {
      data['tags'] =  [];
    }
		data['apkLink'] = this.apkLink;
		data['envelopePic'] = this.envelopePic;
		data['chapterId'] = this.chapterId;
		data['superChapterId'] = this.superChapterId;
		data['id'] = this.id;
		data['originId'] = this.originId;
		data['fresh'] = this.fresh;
		data['collect'] = this.collect;
		data['courseId'] = this.courseId;
		data['desc'] = this.desc;
		return data;
	}
}
